package com.jinlia.show.modules.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 用户和角色关联表
 */
@Data
@NoArgsConstructor
@TableName(value = "sys_user_role",schema = DynamicSchemaConfig.schema_system)
public class SysUserRole {
    @TableId
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 角色ID
     */
    private Long roleId;

    public SysUserRole(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}
